package com.yang.designmode.ActionMode.chainResponsibility;
// 具体处理者1
public class ConcreteHandlerA extends Handler {
    @Override
    public void handleRequest(String request) {
        if ("A".equals(request)) {
            System.out.println("ConcreteHandlerA 处理了请求");
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}
